

const getData = 10
export default function asyncfunc(setData = getData, action) {
    const {type,data} = action
    if (type ==='clickasync') {
        return setData - data
    }
    return setData
}